<template>
  <div class="content">
    <div class="header">
      <P>USER/CENTER</P>
      <P>个人中心</P>
    </div>
    <div style="margin: 20px;">
      <el-tabs :tab-position="tabPosition"  style="min-height: 400px;">
        <el-tab-pane> <span slot="label"><i class="el-icon-user"></i>个人中心</span><Userinfo/></el-tab-pane>
        <el-tab-pane><span slot="label"><i class="el-icon-star-off"></i>我的收藏</span><Collection/></el-tab-pane>
        <el-tab-pane><span slot="label"><i class="el-icon-chat-dot-square"></i>消息通知</span><Message/></el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script>
import Message from './message/index.vue'
import Userinfo from './userinfo/index.vue'
import Collection from './collection/index.vue'
export default {
  name: 'personal',

  data() {
    return {
      tabPosition: 'left'
    };
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    }
  },
  components:{Message,Userinfo,Collection}
};
</script>

<style lang="less" scoped>
* {
  margin: 0;
  padding: 0;
}

.content {
  width: 65%;
  margin: 20px auto;

  .header {
    width: 100%;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: burlywood;
    font-weight: 500;
    font-family: 'Courier New', Courier, monospace;
  }

  i{
    margin-right: 5px;
  }
}
</style>